package net.wzw.model;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wzw
 * @date 2025/5/1
 * @Description
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("food_counter")
public class FoodCounterDO implements Serializable {

    private static final long serialVersionUID =1L;

    /**
     * 美食笔记id
     */
    private  Long  foodId;



    /**
     * 点赞数：like_count，评论数：comment_count，收藏数：collect_count
     */
    private String countKey;

    /**
     * 对应 count_key 计数
     */
    private Integer countValue;

    /**
     * 上一次更新的 value
     */
    private Integer lastCountValue;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

}
